package com.aloda.enums;

import com.alibaba.fastjson.annotation.JSONCreator;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import com.alibaba.fastjson.support.spring.annotation.ResponseJSONP;
import com.baomidou.mybatisplus.annotation.EnumValue;

public enum UserCategory {
    USER(1,"普通用户"),
    EMP(0,"员工")
    ;

    @EnumValue
    private int code;

    @JSONField
    private String desc;

    UserCategory(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
